<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>跳转测试</title>
    <!--第一个kk是 配置在 application。yml 的-->
    <script src="/kk/ss/util/jquery-3.2.1.min.js"></script>
    <script src="/kk/ss/bianliang.js"></script>
</head>
<body>
跳转测试
<button id="kk" type="button" style="width: 100px;height: 70px"></button>
<script type="application/javascript">
    $("#kk").click(function () {
        $.ajax({

//            url : "http://127.0.0.1:8081/testAjaxPost",
//             url : "/msgPageSysUserCondition",
//             url : "http://127.0.0.1:8090/kk/testajax",
            url : myurl1+"/kk/testajax",
            type : "GET",
            // data:JSON.stringify(saveData),
            // data : '{"pageSize":"1","pageNum":"1"}',//可用
            // data:JSON.stringify(saveData),//和上面一行都可用
            //  dataType : "json",
            // contentType : "application/json;charset=utf-8",
            //  hearder:'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJhZ2VcIjozMyxcImJpcnRoZGF5XCI6NTM1OTEwNDAwMDAwLFwiaWRcIjpcIjFcIixcImludGVyZXN0XCI6XCLniLHlpb1cIixcImxhc3RMb2dpblRpbWVcIjoxNTUzNjU5NDY0MDAwLFwibmFtZVwiOlwi6Z-p5pyL6JmOXCIsXCJwYXNzd29yZFwiOlwiMTIzNDU2XCIsXCJyZWdpc3RUaW1lXCI6MTU1MzY1OTQ2NDAwMCxcInJlbVwiOlwi5aSH5rOoXCIsXCJzYWx0XCI6XCIxXCIsXCJ1c2VybmFtZVwiOlwiMTMwOTU0NTMxMTZcIn0iLCJleHAiOjE1NTY1Mzg0MjUsImlhdCI6MTU1Mzk0NjQyNX0.msitxxmZGyYPQD0efJQXRpXZn2Mzi5nv9wJq5o8KPQvAatFJUOzBCbfxtoujtvpjNKRkSIOSWe4Mfk6Jlk0kjQ',
            //  hearder:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJhZGRyZXNzXCI6XCLlvpDlrrbmsYdcIixcImFkZHJlc3NJZFwiOlwiYzFcIixcImF1dGhcIjpcIjFc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FyZFwiOlwiaHR0cHM6Ly9tYW5hZ2UuZmRsemYuY29tL25hbWVDYXJkLzE5MDcwNDEwNTQzNDUzMTkwNjU2LmpwZ1wiLFwicGVyc29uQ2FyZFwiOlwiaHR0cHM6Ly9tYW5hZ2UuZmRsemYuY29tL3BlcnNvbkNhcmQvMTkwNzE3MjMzOTUzMTg0NTE5OC5qcGdcIixcInBlcnNvbkNhcmRJZFwiOlwiXCIsXCJwaG9uZVwiOlwiMTM2MzYzOTY5OTNcIixcInJlZ2lzdENvbXBhbnlcIjpcIuaBkuS9keWcsOS6p1wiLFwicm9sZU9cIjpcIuW8gOWPkeWVhnznu4_nuqrkurp85YWN6LS554mI55So5oi3fOWfuuehgOWll-mkkHzph4fpm4blj5HluIN86K6k6K-B566h55CG5ZGY6KeS6ImyfOeUqOaIt-S_oeaBr-e8lui-keadg-mZkOiuvue9ruinkuiJsnzotoXnuqfnrqHnkIblkZhcIixcInNleFwiOjMsXCJzZXhPXCI6XCLmnKrnn6XmgKfliKtcIixcInN0YXR1c1wiOjEsXCJzdGF0dXNPXCI6XCLotKbmiLfmraPluLhcIixcInN0b3JlXCI6XCLljZfkuLnkuJzot6_lupdcIixcInN5c0RlcHRJZHNcIjpbXSxcInN5c0RlcHRzXCI6W10sXCJ0ZW5hbnRJZFwiOlwiaXBhY2VcIixcInVzZXJuYW1lXCI6XCJTdXBlckFkbWluXCJ9IiwiZXhwIjoxNTY4MTc1OTE0LCJpYXQiOjE1NjU1ODM5MTR9.0HLBrGqnaSixv9amHMpPXS5Ha-bILgCRewexXXBw_sGsMU2DG3LAMmrfQ3TdGufcrIkvPlMGS6pfyPNBO5EhAw'},
            success:function(d){

                console.log(d)

                //注意得到的d其实是一个js格式JSON对象
                // document.write( "Data Saved: " + JSON.stringify(d));//讲json对象序列化(字符串)输出
//                alert( "Data Saved: " + d[0]["name"]);//拿到js的json对象的数组中的第0个对象的key是osDd的value
//                 alert( "Data Saved: " + d["name"]);//拿到js的json对象的数组中的第0个对象的key是osDd的value
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("====XMLHttpRequest========="+XMLHttpRequest+"============")
                console.log("====JSON.stringify(XMLHttpRequest).lastIndexOf========="+JSON.stringify(XMLHttpRequest).lastIndexOf("登录")+"============")
                console.log("=======textStatus======"+textStatus+"============")
                console.log("========errorThrown====="+errorThrown+"============")
                if(JSON.stringify(XMLHttpRequest).lastIndexOf("登录")>-1){
                    top.location.href=location.href;
                }
            }
        });
    })
</script>
</body>
</html>